<style type="text/css">
	.red-star { color:#FF0000; }	
</style>
<?php
$disabled_seller 	= '';
$disabled_merchant 	= '';
$disabled_wholesaler 	= '';
if($_SESSION['user_type_sess']==2)
{
	$disabled_merchant 	= 'disabled="disabled"';
	$disabled_wholesaler 	= 'disabled="disabled"';
}
else if($_SESSION['user_type_sess']==3)
{
	$disabled_seller 	= '';
	$disabled_wholesaler 	= 'disabled="disabled"';
}
?>


<div id='panel'>
<a name="sellp" id="sellp"></a>
<div class="fulldiv" style="width:950px;">

<table width="100%" border="0" class="signin_bg">
  <tr>
  	
	<td>
	
	<div class="signin_out">
	
	<div class="signin_top">&nbsp;</div>
	<div class="signin_repeat">
	
		<div style="text-align:center; width:100%; float:left;">
			<div class="selltxt">&nbsp;</div>
		</div>
		<div style="float: left; width: 100%; margin: 10px 0px; text-align: center; font-size: 14px;">
			I am a: 
			<input type="radio" name="who" id="seller" onchange="enable_disable_s3()" checked <?php echo $disabled_seller; ?> />Seller&nbsp;&nbsp; 
			<input type="radio" name="who" id="merchant" onchange="enable_disable_s3()" <?php echo $disabled_merchant; ?> />Merchant&nbsp;&nbsp;
			<input type="radio" name="who" id="wholesaler" onchange="enable_disable_s3()" <?php echo $disabled_wholesaler; ?> />Wholesaler
		</div>
		<div style="float: left; width: 100%; margin: 10px 0px; text-align: center; font-size: 14px;">
			<div style="float: left; text-align: right; width: 130px;">My Options:</div>
			<div style="float: left; text-align: left; margin-left: 10px; width: 240px;">
				<input type="radio" name="my_option" id="s1" checked /> Sell my product<br />
				<input type="radio" name="my_option" id="s2" /> Have my products sold for me<br />
				<input type="radio" name="my_option" id="s3" /> Sell other user's products
			</div>
		</div>
		<div align="center" style="float: left; width: 100%; margin: 10px 0px; text-align: center; font-size: 14px;">
			<input style="float:none;" align="center" type="button" value="Start Selling" name="smtSignin" id="smtSignin" class="yellow_btn" onclick="link_to_page()" />
		</div>
	  
	</div>
	<div class="signin_bot">&nbsp;</div>
	
	</div>
	
	<div class="signrgt_out">
		
		<div class="signrgt_top">&nbsp;</div>
		<div class="signrgt_repeat">
			<table border="0" width="100%" align="center">
			
			<tr>
			<td class="blue_big">
			<span style="margin:15px 0px 10px 0px; float:left; width:100%;">Don't have an account yet?</span>
			</td>
			</tr>
			
			<tr>
			<td class="black_big"> <span style="margin:15px 0px 25px 0px; float:left;  width:100%;">Start making things happen</span></td>
			</tr>
			
			<tr>
			<td> 
			<span style="margin:15px 0px 15px 0px; float:left;  width:100%;">
			<input type="button" value="Register" name="" id="" class="sbmt_btn" onclick="window.location='index.php?registerMember=seller'" />
			</span>
			</td>
			</tr>
			
			<tr>
			<td>
				<div class="fulldiv">
					<div class="quoteimg">&nbsp;</div>
				</div>
				<div class="fulldiv">
					<div class="quote">This website offers more options to make money than any other website I've seen. I almost don't want to tell anyone about it.<br /><br />
					<br /><div style="float: right; text-align: right; margin: 10px 0px 0px;">Justin 34, California</div>
					</div>
				</div>
			</td>
			</tr>
			
			

			
			</table>
		</div>
		<div class="signrgt_bot">&nbsp;</div>
		
	</div>
	
	</td>
  </tr>
</table>	

</div>

</div>

<script type="text/javascript">
function  enable_disable_s3()
{
	if($("#merchant").is(":checked")==true)
	{
		$('#s3').attr('disabled','disabled');
		$('#s2').attr('disabled','');
		$('#s2').attr('checked','checked');
		$('#s1').attr('disabled','disabled');
	}
	else if($("#wholesaler").is(":checked")==true)
	{
		$('#s2').attr('disabled','disabled');
		$('#s1').attr('disabled','');
		$('#s1').attr('checked','checked');
		$('#s3').attr('disabled','disabled');
	}
	else {
		$('#s3').attr('disabled','');
		$('#s2').attr('disabled','');
		$('#s1').attr('disabled','');
	}
	
	
}

function link_to_page()
{
	var user_type = '<?php echo $_SESSION['user_type_sess']; ?>';
	if($("#s1").is(":checked")==true)
	{
		if(user_type==2 || user_type==3)
		{
			window.location.href = '<?php echo $base_url;?>index.php?sell&by=seller';
		}
		else if(user_type==5)
		{
			//window.location.href = '<?php //echo $base_url;?>index.php?sell&by=own';
			window.location.href = '<?php echo $base_url;?>index.php?import=1';
		}
		else if(user_type=='')
		{
			if($("#wholesaler").is(":checked")==true)
				//window.location.href = '<?php //echo $base_url;?>index.php?sell&by=own';
			    window.location.href = '<?php echo $base_url;?>index.php?import=1';
			else
				window.location.href = '<?php echo $base_url;?>index.php?sell&by=seller';
		}
	}
	else if($("#s2").is(":checked")==true)
	{
		if(user_type==2 || user_type==3 || user_type==5 || user_type=='')
		{
			window.location.href = '<?php echo $base_url;?>index.php?sell&by=seller';
		}
		
	}
	else if($("#s3").is(":checked")==true)
	{
		if(user_type==2)
		{ 
			window.location.href = '<?php echo $base_url;?>index.php?addProduct';
		}
		else if(user_type=='')
		{
			window.location.href = '<?php echo $base_url;?>index.php?signin';
		}
	}
	
}
</script>